package com.cbh.feign.controller.settlement;



import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.settlement.SettlementTrader;


public interface SettlementTraderControllerBase {
	

	/**
	 * 保存
	 * 
	 * @param accountToken
	 * @param ob
	 * @return
	 */
	@RequestMapping(value = "/auth/v3/settlement/trader", method = RequestMethod.POST, produces = "application/json")
	public ApiResult<String> save(@RequestParam(value = "accountToken", required = true) String accountToken,
			@RequestBody(required = true) SettlementTrader ob);

	/**
	 * 根据ID获取供应商
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/auth/v3/settlement/trader/{id}", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<SettlementTrader> get(@RequestParam(value = "accountToken", required = true) String accountToken,
			@PathVariable("id") String id) ;
	/**
	 * 获取经办人佣金结算
	 * 
	 * @param accountToken
	 * @param id
	 * @param isId
	 * @return
	 */
	@RequestMapping(value = "/auth/v3/settlement/trader/is", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<List<SettlementTrader>> list(
			 @RequestParam(value = "accountToken", required = true) String accountToken,
			 @RequestParam(value = "id", required = true) String id,
			@RequestParam(value = "isId", required = true) String isId) ;

	/**
	 * 获取经办人佣金结算
	 * 
	 * @param accountToken
	 * @param id
	 * @param insuranceType
	 * @param buyClass
	 * @param isId
	 * @return
	 */
	@RequestMapping(value = "/auth/v3/settlement/trader/lists", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<List<SettlementTrader>> lists(
			 @RequestParam(value = "accountToken", required = true) String accountToken,
			 @RequestParam(value = "id", required = true) String id,
			 @RequestParam(value = "insuranceType", required = true) String insuranceType,
			@RequestParam(value = "buyClass", required = true) String buyClass,
			@RequestParam(value = "isId", required = true) String isId);

}
